#ifdef SMB_RS

#ifdef FIRST
#define EXTERN

#else
#define EXTERN  extern

#endif

typedef struct { 
     unsigned short portno;
	 unsigned short prot;
     unsigned short step;
     short          path;
     unsigned short size;
	 unsigned short dly;
	 unsigned short htid,hpid;
	 unsigned short soeb_tail,soeb_tails;
	 unsigned short evnb_tail,evnb_tails;
	 unsigned char  DI_OCHGC[MAX_DI_NUM];
     unsigned char  DI_OMCD[DI_BNUM];
	 unsigned char  DI_change;
	 unsigned char  rsf4_rev;
	 U32  rs_send,rs_rev,rs_noecho,rs_fmterr,rs_crcerr; 
	 U16  RADDR;
} SMB_PARM;

#define SMB_NUM  2
EXTERN SMB_PARM  SMB[SMB_NUM];
	 
EXTERN unsigned short smb_dly;

void smb_pro(void);
void init_smb(short lno,int port,unsigned char *ip,short prot);
void smb_clr(void);
#endif

